/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-07-03     18421       the first version
 */
#ifndef APPLICATIONS_APP_OTA_H_
#define APPLICATIONS_APP_TCPCONNECT_H_

#include "dev_4gmodule.h"


typedef struct
{
    /*升级状态*/
       uint8_t ota_status;

       uint8_t VersionNumber;               /*当前软件版本号*/

       uint8_t ota_VersionNumber;  /*升级包版本号*/
       uint32_t ota_size;          /*升级包大小 */
       uint8_t ota_crc[32];           /*升级包校验码*/
       char ota_url[128];          /*文件下载URL-HTTP*/
       char ota_route[128];        /*文件下载目录-HTTP*/
       char ota_port[6];
       uint32_t ota_byte_size;     /*升级下载字节控制*/
}OTA_CTR_INFO_Struct;
typedef OTA_CTR_INFO_Struct *ota_info_stuct_t;


ota_info_stuct_t ota_get_info_struct();

#endif /* APPLICATIONS_APP_OTA_H_ */
